//
//  RouCollection.swift
//  ONESwift
//
//  Created by wangkun on 2017/6/16.
//  Copyright © 2017年 wangkun. All rights reserved.
//

import UIKit

extension Collection {
    
    public func toJsonString() -> String {
        let data = try? JSONSerialization.data(withJSONObject: self, options: [])
        return String(data: data!, encoding: .utf8) ?? ""
    }
}
